﻿using System;
using System.Collections.Generic;
using System.Text;
using YunPian.Response;
using YunPian.Tools;

namespace YunPian.Request
{
    public class SingleSendRequest : IBaseRequest<SingleSendResponse>
    {

        private string _apiUrl = "sms/single_send.json";
        private string _method = "POST";

        private BaseModel baseModel;


        public SingleSendRequest() 
        { 
        
        
        }

       
        public string GetBody()
        {
            return WebHelper.BuildQuery(baseModel);
        }

        public string GetMetohd()
        {
            return _method;
        }

        public string GetUrl()
        {
            return _apiUrl;
        }

        public void SetModel<TM>(TM m) where TM : BaseModel
        {
            baseModel = m;
        }
    }
}
